package com.tboss.template.sample.dwr.treeviewDao;

import java.util.List;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.tboss.template.sample.dwr.treeviewDto.TreeviewDto;
import com.tboss.global.helpers.sqlSession.SqlSessionSupport;

@Repository
public class TreeviewDao extends SqlSessionSupport {

	@Autowired
	public TreeviewDao(@Qualifier("sqlSession")SqlSession sqlSession){
		super(sqlSession);
	}
	
	@Override
	public String getNameSpace() {
		return "systemMain";
	}
	
	public List<TreeviewDto> getLeftMenu(TreeviewDto treeviewDto){
		return super.queryForList("getLeftMenu", treeviewDto);
	}

}
